package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 竞赛调考积分
 * </p>
 *
 * @author jondai
 * @since 2018-01-08
 */
@TableName("contest_rule")
public class ContestRule extends Model<ContestRule> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
	@TableId(value="id", type= IdType.UUID)
	private String id;
    /**
     * 公司级别
     */
	@TableField("company_level")
	private String companyLevel;
    /**
     * 公司级别代码
     */
	@TableField("company_level_code")
	private String companyLevelCode;

	public static final String companyLevelCodeDB = "company_level_code";
    /**
     * 竞赛类型
     */
	@TableField("contest_type")
	private String contestType;
    /**
     * 竞赛类型代码
     */
	@TableField("contest_type_code")
	private String contestTypeCode;
	public static final String contestTypeCodeDB = "contest_type_code";
    /**
     * 获奖类型
     */
	@TableField("win_type")
	private String winType;
    /**
     * 获奖类型代码
     */
	@TableField("win_type_code")
	private String winTypeCode;
	public static final String winTypeCodeDB = "win_type_code";
    /**
     * 积分
     */
	private Double integral;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCompanyLevel() {
		return companyLevel;
	}

	public void setCompanyLevel(String companyLevel) {
		this.companyLevel = companyLevel;
	}

	public String getCompanyLevelCode() {
		return companyLevelCode;
	}

	public void setCompanyLevelCode(String companyLevelCode) {
		this.companyLevelCode = companyLevelCode;
	}

	public String getContestType() {
		return contestType;
	}

	public void setContestType(String contestType) {
		this.contestType = contestType;
	}

	public String getContestTypeCode() {
		return contestTypeCode;
	}

	public void setContestTypeCode(String contestTypeCode) {
		this.contestTypeCode = contestTypeCode;
	}

	public String getWinType() {
		return winType;
	}

	public void setWinType(String winType) {
		this.winType = winType;
	}

	public String getWinTypeCode() {
		return winTypeCode;
	}

	public void setWinTypeCode(String winTypeCode) {
		this.winTypeCode = winTypeCode;
	}

	public Double getIntegral() {
		return integral;
	}

	public void setIntegral(Double integral) {
		this.integral = integral;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ContestRule{" +
			"id=" + id +
			", companyLevel=" + companyLevel +
			", companyLevelCode=" + companyLevelCode +
			", contestType=" + contestType +
			", contestTypeCode=" + contestTypeCode +
			", winType=" + winType +
			", winTypeCode=" + winTypeCode +
			", integral=" + integral +
			"}";
	}
}
